{
atlases = gsk_gl_texture_atlases_new ();
g_object_set_data_full (G_OBJECT (display), "gsk-gl-texture-atlases",
- gsk_gl_texture_atlases_ref (atlases),
+ atlases,
(GDestroyNotify) gsk_gl_texture_atlases_unref);
}
- return atlases;
+ return gsk_gl_texture_atlases_ref (atlases);
}
static GskGLGlyphCache *
{
glyph_cache = gsk_gl_glyph_cache_new (display, atlases);
g_object_set_data_full (G_OBJECT (display), "gsk-gl-glyph-cache",
- gsk_gl_glyph_cache_ref (glyph_cache),
+ glyph_cache,
(GDestroyNotify) gsk_gl_glyph_cache_unref);
}
- return glyph_cache;
+ return gsk_gl_glyph_cache_ref (glyph_cache);
}
static GskGLIconCache *
{
icon_cache = gsk_gl_icon_cache_new (display, atlases);
g_object_set_data_full (G_OBJECT (display), "gsk-gl-icon-cache",
- gsk_gl_icon_cache_ref (icon_cache),
+ icon_cache,
(GDestroyNotify) gsk_gl_icon_cache_unref);
}
- return icon_cache;
+ return gsk_gl_icon_cache_ref (icon_cache);
}
static gboolean